<template>
  <switch
    :checked="row.isAddWechat === 1"
    @change="$emit('change', $event.detail.value ? 1 : 0, row)"
    color="#007AFF"
  />
</template>

<script setup lang="ts">
defineProps<{ row: any }>()
defineEmits(['change'])
</script>